import { BehaviorWithStore } from 'mobx-miniprogram-bindings'

import { userStore } from '../../../../stores/userStore'

export const userBehavior = BehaviorWithStore({
  //minx 混入
  storeBindings: {
    store: userStore,
    fields: ['userInfo', 'token'],
    actions: ['setUserInfo']
  }
})
